#include "Server.hpp"

int main()
{
    Server server;
    server.OpenPipeForRead();
    std::string out;
    while (true)
    {
        if (server.RecePipe(&out) > 0)
            std::cout << "Server# " << out << std::endl;
        else
        {
            break;
        }
    }
    std::cout << "Client quit, me too!" << std::endl;
    server.ClosePipe();
    return 0;
}